package com.android.smsmessing.provider;

import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.Context;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.net.Uri;

public class SMSProvider extends ContentProvider {

	private static final String TAG = "SMSProvider";
	private static final String DATABASE_NAME = "message.db";
	private static final int DATABASE_VERSION = 1;
	private static final String MESSAGE_TABLE_NAME = "message";
	private static final UriMatcher sUriMatcher = null;
	private static final int Message = 1;
	private static final int Message_ID = 2;

	private static class DatabaseHelper extends SQLiteOpenHelper {

		public DatabaseHelper(Context context) {
			super(context, DATABASE_NAME, null, DATABASE_VERSION);
			// TODO Auto-generated constructor stub
		}

		@Override
		public void onCreate(SQLiteDatabase db) {
			// TODO Auto-generated method stub
			StringBuffer query = new StringBuffer();
			query.append("CREATE TABLE ").append(MESSAGE_TABLE_NAME)
					.append("(").append(SMS.Message._ID).append(" INTEGER PRIMARY KEY")
					.append(SMS.Message.NAME).append(" VARCHAR,")
					.append(SMS.Message.ADDRESS).append(" VARCHAR,");
//					.append(SMS.Message.SUMMARY).append(b);
		}

		@Override
		public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
			// TODO Auto-generated method stub

		}

	}

	@Override
	public int delete(Uri uri, String selection, String[] selectionArgs) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public String getType(Uri uri) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Uri insert(Uri uri, ContentValues values) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean onCreate() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public Cursor query(Uri uri, String[] projection, String selection,
			String[] selectionArgs, String sortOrder) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int update(Uri uri, ContentValues values, String selection,
			String[] selectionArgs) {
		// TODO Auto-generated method stub
		return 0;
	}

}
